/* --------------------------------------------------------------------------------------
	This class test the cwDatabase
-----------------------------------------------------------------------------------------*/

//Qt includes
#include <QObject>

//Our includes
class plDatabase;

class cwDatabaseTest : public QObject {
Q_OBJECT
	
private: 
	
        plDatabase* TestDB;
	QString TestName;

	static const QString TestDatabase;

private slots:
	//Create the database
	void init();
	
	//Deletes the database off of disk
	void cleanup();

	void factoryTest();

	void simpleAddTest();

	void simpleSetTest_data();
	void simpleSetTest();

	void simpleSetLoadTest_data();
	void simpleSetLoadTest();

	void multiObjectAddTest();
	void multiObjectSetLoadTest();

	void multiDeleteTest();

	void getAllTest();

        void listTest();

        void newInConstructorTest();


};

